package com.mycode.abstractFactory04.resolve;

// Spring 皮肤工厂：具体工厂
public class SpringSkinFactory implements SkinFactory{
    @Override
    public Button createButton() {
        SpringButton springButton = new SpringButton();
        System.out.println("初始化浅绿色按钮");
        return springButton;
    }

    @Override
    public TextField createTextField() {
        return new SpringTextField();
    }

    @Override
    public ComboBox createComboBox() {
        return new SpringComboBox();
    }
}
